<?php 
namespace App\Infra;

use App\Models\Submit;
use App\Utils\ModelOperatorUtil;

class FrontManager{
	use ModelOperatorUtil;

	public function createSubmit($data){
		$this->create(Submit::class,$data);
	}

	public function getSubmits(){
		return Submit::with('province')->orderBy('created_at','desc')->paginate(10);
	}
}